package com.aishuang.order;

import com.aishuang.feign.client.UserClient;
import com.aishuang.order.config.DefaultFeignConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

@MapperScan("com.aishuang.order.mapper")
@SpringBootApplication
// DefaultFeignConfiguration 全局加载配置文件
// @EnableFeignClients(defaultConfiguration = DefaultFeignConfiguration.class) // 开启feign的客户端
// @EnableFeignClients
// @EnableFeignClients(basePackageClasses= UserClient.class)  // 扫描一个
@EnableFeignClients(basePackages= "com.aishuang.feign.client")   // 扫描指定包下的所有client
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }



}